#ifndef __THREE_STACKS_H__
#define __THREE_STACKS_H__

class ThreeStack {
public:
	ThreeStack();
	~ThreeStack();

	bool push(int stack_num, int val);
	bool pop(int stack_num);
	int  top(int stack_num);
	size_t size(int stack_num);
	bool empty(int stack_num);

private:

	#define STACK_NUM 3
	size_t stack_size;
	int *array;
	size_t node_num[STACK_NUM];
};

#endif

